<template>
	<view class="content" :style="[{paddingTop:topHeight}]">
		<u-navbar bgColor="#F7F9FC" :fixed="true" titleStyle="color:#fff">
			<view class="u-nav-slot" slot="left">
				<u-icon name="arrow-left" color="#000000" size="46rpx" @click="goBack"></u-icon>
				<view style="margin-left: 31rpx;">
					<view>待付款</view>
				</view>

			</view>
		</u-navbar>
		<view class="detail-con">
			<view style="padding: 23rpx;">
				<view style="font-size: 31rpx;">客户信息</view>
				<view style="margin-top: 15rpx;">
					<text>王一一</text>
					<text style="margin-left: 23rpx;">15515824521</text>
				</view>
				<view style="margin-top: 15rpx;">河南省郑州市金水区未来路未来花园</view>
				<!-- <view style="margin-top: 15rpx;color: #999999;">距您约183.06km</view> -->
			</view>
			<!-- <u-line color="#d8d8d8"></u-line>
			<view style="display: flex;">
				<view class="top-item">
					<image :src="$IMG_URL+'copy_line.png'" mode="widthFix" style="width: 38rpx;"></image>
					<view style="margin-left: 4rpx;">复制链接</view>
				</view>
				<view class="top-item">
					<image :src="$IMG_URL+'navigation_line.png'" mode="widthFix" style="width: 38rpx;"></image>
					<view style="margin-left: 4rpx;">立即导航</view>
				</view>
				<view class="top-item">
					<image :src="$IMG_URL+'phone_line.png'" mode="widthFix" style="width: 38rpx;"></image>
					<view style="margin-left: 4rpx;">联系客户</view>
				</view>
			</view> -->

		</view>
		<view class="detail-middle">
			<view style="display: flex;">
				<image src="https://cdn.uviewui.com/uview/album/2.jpg" mode="aspectFill"
					style="width: 140rpx;height: 140rpx;border-radius: 10rpx;"></image>
				<view style="margin-left: 15rpx;font-size: 23rpx;color: #666666;flex: 1;">
					<view class="text-ovew" style="font-weight: 500;font-size: 27rpx;color: #000000;">
						河南省郑州市河南省郑州市河南省郑州市河南省郑州市</view>
					<view class="flex-row" style="margin-top: 23rpx;">
						<view>x 1</view>
						<view style="font-weight: 500;font-size: 31rpx;color: #000000;margin-left: auto;">￥50.00</view>
					</view>

				</view>
			</view>
			<view class="order-time" style="margin-top: 23rpx;">
				<view>商品总价</view>
				<view style="margin-left: auto;color: #000000;font-size: 35rpx;">￥56.00</view>
			</view>
			<view class="order-time" style="margin-top: 23rpx;">
				<view>运费</view>
				<view style="margin-left: auto;color: #000000;font-size: 35rpx;">￥56.00</view>
			</view>
			<view class="order-time" style="margin-top: 23rpx;">
				<view>实付款</view>
				<view style="margin-left: auto;color: #FF3902;font-size: 35rpx;">￥56.00</view>
			</view>
		</view>

		<view class="detail-con">
			<view style="padding: 23rpx;">
				<view class="flex-row" style="margin-top: 15rpx;">
					<text style="color: #666666;">订单编号</text>
					<text style="margin-left: auto;">20221030105727075168</text>
					<text style="color: #0277DE;margin-left: 15rpx;">复制</text>
				</view>
				<view class="flex-row" style="margin-top: 15rpx;">
					<text style="color: #666666;">创建时间</text>
					<text style="margin-left: auto;">2024-03-10 10:09:09</text>
				</view>
			</view>
		</view>
		<view class="detail-but">
			<view style="width: 688rpx;display: flex;align-items: center;justify-content: space-between;">
				<view class="but-item" style="width: 185rpx;">
					<u-button :plain="true" shape="circle" text="延缓施工"></u-button>
				</view>
				<view class="but-item" style="width: 246rpx;">
					<u-button :plain="true" shape="circle" text="修改预约时间"></u-button>
				</view>
				<view class="but-item" style="width: 185rpx;">
					<u-button type="primary" shape="circle" text="上门签到"></u-button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				topHeight: '90px',
			}
		},
		onLoad() {
			this.topHeight = uni.$u.sys().statusBarHeight + 44 + 'px'
			console.log(uni.$u.sys().statusBarHeight, this.topHeight);
		},
		methods: {
			goBack() {
				uni.navigateBack()
			},
		}
	}
</script>

<style scoped lang="scss">
	.content {
		// padding-top: 90px;
		padding-bottom: calc(env(safe-area-inset-bottom) / 2 + 140rpx) !important;
	}

	.text-ovew {
		width: 465rpx;
		overflow: hidden;
		text-overflow: ellipsis;
		-webkit-line-clamp: 2;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.order-time {
		display: flex;
		align-items: center;
		font-size: 27rpx;
		color: #999999;
	}

	.u-nav-slot {
		display: flex;
		align-items: center;
		color: #000000;
		font-size: 35rpx;
	}

	.detail-con {
		margin: 0 auto;
		margin-top: 23rpx;
		width: 688rpx;

		background: #FFFFFF;
		border-radius: 10rpx;
		font-size: 27rpx;
		color: #000000;
	}

	.top-item {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 23rpx 0;
		color: #666666;
		font-size: 29rpx;
	}

	.detail-middle {
		margin: 0 auto;
		margin-top: 27rpx;
		width: 688rpx;
		padding: 23rpx;
		background: #FFFFFF;
		border-radius: 10rpx;
		font-size: 27rpx;
		color: #000000;
	}

	.detail-but {
		width: 750rpx !important;
		background: #ffffff !important;
		position: fixed !important;
		bottom: 0 !important;
		display: flex !important;
		justify-content: center;
		align-items: center;
		padding-top: 20rpx;
		padding-bottom: calc(env(safe-area-inset-bottom) / 2 + 20rpx) !important;
		box-sizing: content-box;
		z-index: 9999 !important;

		& ::v-deep .u-button {
			height: 77rpx !important;
		}

		& ::v-deep .u-button--info {
			color: #000000 !important;
		}
	}
</style>